import request from "@/utils/request";
import {AxiosPromise} from "axios";
import {CrawlQueuePageResult, CrawlQueueQuery,} from "./types";

/**
 * 爬虫数据分页列表
 *
 * @param data
 */
export function getPage(data: CrawlQueueQuery): AxiosPromise<CrawlQueuePageResult> {
	return request({
		url: "/api/v1/crawl/queue/page",
		method: "post",
		data: data,
	});
}
